<!--<?php print <<<EOT
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="js/png_IE6.js" type="text/javascript"></script>
<title>站长-右侧</title>
<link href="css/zhanzhang_right.css" rel="stylesheet" type="text/css" />
</head>

<body class="zz_right">
<div class="right_box">

<div class="right_tit">
<dl>
<dt></dt>
<dd>站长个人页面--首页关注信息</dd>
</dl>
</div>
<div class="right_manage">
<dl>
<dt></dt>
<dd>总收入：$AffUser[total_money]元</dd>
<dd>未结算收入：$AffUser[balance]元</dd>
<dd>上次结算日期：$last_paytime</dd>
<dd>上次结算金额：$AffUser[last_payment]元</dd>
<dd>当前信誉度：$AffUser[credit]</dd>
<dd class="dd01"></dd>
</dl>
</div>


<div class="right_data">
<dl>
<dd class="dd01"><strong>名称</strong></dd>
<dd class="dd02"><strong>计费类型</strong></dd>
<dd class="dd03"><strong>结算周期</strong></dd>
<dd class="dd02"><strong>价格</strong></dd>
<dd class="dd04"><strong>添加时间</strong></dd>
<dd class="dd05"><strong>操作</strong></dd>


<dd class="dd06"><strong>最新广告</strong></dd>
<!--
EOT;
foreach($db_advtimelist as $db_adv){
	$showhtml = '<a target="right" href="'.$basename.'?job=advertise&action=apply&curid='.$db_adv[id].'&curpage='.$curpage.'">未申请，申请此广告</a>';
	$cdate = date('Y/m/d',$db_adv[create_time]);
	$feetype = $cfg_advfeetype[$db_adv[fee_type]];
	foreach($db_applylist as $db_apply){
		if($db_adv[id]==$db_apply[adv_id]){
			if($db_apply[status]==4) $showhtml = '<a target="right" href="'.$basename.'?job=advertise&action=reapply&curid='.$db_adv[id].'&curpage='.$curpage.'">重新申请</a> ';
			if($db_apply[status]==1) $showhtml = '<a target="right" href="'.$basename.'?job=advertise&action=advcode&curid='.$db_adv[id].'&curpage='.$curpage.'">获取代码</a> ';
		}
	}
print <<<EOT
-->
<dd class="dd01">$db_adv[name]</dd>
<dd class="dd02">$feetype</dd>
<dd class="dd03">$affpaycycle</dd>
<dd class="dd02">$db_adv[aff_price] $db_adv[aff_unit]</dd>
<dd class="dd04">$cdate</dd>
<dd class="dd05">$showhtml</dd>
<!--
EOT;
}
print <<<EOT
 -->
<dd class="dd06"><strong>联盟推荐</strong></dd>
<!--
EOT;
foreach($db_advlevellist as $db_adv){
	$showhtml = '<a target="right" href="'.$basename.'?job=advertise&action=apply&curid='.$db_adv[id].'&curpage='.$curpage.'">未申请，申请此广告</a>';
	$cdate = date('Y/m/d',$db_adv[create_time]);
	$feetype = $cfg_advfeetype[$db_adv[fee_type]];
	foreach($db_applylist as $db_apply){
		if($db_adv[id]==$db_apply[adv_id]){
			if($db_apply[status]==4) $showhtml = '<a target="right" href="'.$basename.'?job=advertise&action=reapply&curid='.$db_adv[id].'&curpage='.$curpage.'">重新申请</a> ';
			if($db_apply[status]==1) $showhtml = '<a target="right" href="'.$basename.'?job=advertise&action=advcode&curid='.$db_adv[id].'&curpage='.$curpage.'">获取代码</a> ';
		}
	}	
print <<<EOT
-->
<dd class="dd01">$db_adv[name]</dd>
<dd class="dd02">$feetype</dd>
<dd class="dd03">$affpaycycle</dd>
<dd class="dd02">$db_adv[aff_price] $db_adv[aff_unit]</dd>
<dd class="dd04">$cdate</dd>
<dd class="dd05">$showhtml</dd>
<!--
EOT;
}
print <<<EOT
 -->
 
<dd class="dd06"><strong>当日统计数</strong></dd>
<dd class="dd03"></dd>
<dd class="dd02"><strong>站点</strong></dd>
<dd class="dd03"><strong>广告位</strong></dd>
<dd class="dd02"><strong>浏览量</strong></dd>
<dd class="dd03"><strong>点击量</strong></dd>
<dd class="dd02"><strong>结算数(次)</strong></dd>
<dd class="dd03"><strong>收入</strong></dd>
 
 
</dl>
</div>


</div>
</body>
</html>
<!--
EOT;
?>-->